<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>Document</title>
	<script src="https://cdn.jsdelivr.net/npm/vue@2.7.10/dist/vue.min.js"></script>
</head>
<body>
	
	<div id="app">
		<input type="text" @keydown.20="isCapsLock = !isCapsLock" />
		<h5 v-show="isCapsLock">当前已切换大写模式</h5>
	</div>
	
	<script type="text/javascript">
		const app = new Vue({
			el: "#app",
			data: {
				isCapsLock : false
			}
		})
	</script>
	
</body>
</html>
